﻿@model Models.RegModel

@{
    ViewBag.Title = "Registration";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<h2>Registration</h2>

@using (Html.BeginForm())
{

    @Html.ValidationSummary()
    <table id="table_admin">
        <tr>
            <td>
                @Html.LabelFor(x => x.Login)
            </td>
            <td>
                @Html.TextBoxFor(x => x.Login)
            </td>
        </tr>
        <tr>
            <td>
                Email
            </td>
            <td>
                @Html.TextBoxFor(x => x.Email)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(x => x.Pwd)
            </td>
            <td>
                @Html.PasswordFor(x => x.Pwd)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(x => x.ConfirmPwd)
            </td>
            <td>
                @Html.PasswordFor(x => x.ConfirmPwd)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(x => x.Name)
            </td>
            <td>
                @Html.TextBoxFor(x => x.Name)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(x => x.FName)
            </td>
            <td>
                @Html.TextBoxFor(x => x.FName)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(x => x.MName)
            </td>
            <td>
                @Html.TextBoxFor(x => x.MName)
            </td>
        </tr>
        <tr>
            <td colspan="2">
                @{
                   

                    @Html.Hidden("Role",3)
                }
                <input type="submit" name="subReg" value="Register" />
            </td>
 
        </tr>
    </table>
  
  






                                  
                 
}
